<?php

abstract class Moave_Action extends Zend_Controller_Action
{
	protected $cache;
  
    public function init()
    {
      try
      {
        $this->cache = Zend_Cache::factory('Core','Memcached', array('automatic_serialization' => true), array('servers' => array(array('host' => 'localhost', 'port' => 11211, 'persistent' => true, 'weight' => 1, 'timeout' => 5, 'retry_interval' => 15, 'status' => true))));

        if(isset($_GET['cc']))
        {
          $this->cache->clean(Zend_Cache::CLEANING_MODE_ALL);
        }

      }
      catch (Exception $e)
      {
        die($e->getFile().'('.$e->getLine().')'.$e->getMessage());
      }
    }
}


?>